<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('公民报案信息列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>：</label>
                                <input type="text" name="pid"/>
                            </li>
                            <li>
                                <label>案件名称：</label>
                                <input type="text" name="caseName"/>
                            </li>
                            <li>
                                <label>案件编号：</label>
                                <input type="text" name="caseNumber"/>
                            </li>
                            <li>
                                <label>案件地址：</label>
                                <input type="text" name="caseAddress"/>
                            </li>
                            <li>
                                <label>案件街道：</label>
                                <input type="text" name="caseBlock"/>
                            </li>
                            <li>
                                <label>案件楼层：</label>
                                <input type="text" name="caseBuilding"/>
                            </li>
                            <li>
                                <label>案件城市：</label>
                                <input type="text" name="caseCity"/>
                            </li>
                            <li>
                                <label>案件区域：</label>
                                <input type="text" name="caseCounty"/>
                            </li>
                            <li>
                                <label>案件发生纬度：</label>
                                <input type="text" name="caseLatitude"/>
                            </li>
                            <li>
                                <label>案件来源：</label>
                                <input type="text" name="caseSource"/>
                            </li>
                            <li>
                                <label>报警单位受理名称：</label>
                                <input type="text" name="caseSlDwName"/>
                            </li>
                            <li>
                                <label>单位名称：</label>
                                <input type="text" name="caseOrgName"/>
                            </li>
                            <li>
                                <label>案件发生经度：</label>
                                <input type="text" name="caseLongitude"/>
                            </li>
                            <li>
                                <label>案件物品编号：</label>
                                <input type="text" name="caseItemNumber"/>
                            </li>
                            <li>
                                <label>案件物品类型，案件详细地址：</label>
                                <input type="text" name="casePoiItemPlace"/>
                            </li>
                            <li>
                                <label>案件发生市区：</label>
                                <input type="text" name="caseProvince"/>
                            </li>
                            <li>
                                <label>案件发生哪个马路：</label>
                                <input type="text" name="caseRoad"/>
                            </li>
                            <li>
                                <label>案件发生具体地址：</label>
                                <input type="text" name="caseStdAddress"/>
                            </li>
                            <li>
                                <label>报警人：</label>
                                <input type="text" name="caseTakeName"/>
                            </li>
                            <li>
                                <label>报警人手机号：</label>
                                <input type="text" name="caseTakeMobile"/>
                            </li>
                            <li>
                                <label>报警人身份证号：</label>
                                <input type="text" name="caseTakeIdcard"/>
                            </li>
                            <li>
                                <label>案件发生时间：</label>
                                <input type="text" name="caseTime"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:policeInfo:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:policeInfo:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:policeInfo:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:policeInfo:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:policeInfo:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:policeInfo:remove')}]];
        var prefix = ctx + "system/policeInfo";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "公民报案信息",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: '',
                    visible: false
                },
                {
                    field: 'pid',
                    title: ''
                },
                {
                    field: 'caseName',
                    title: '案件名称'
                },
                {
                    field: 'caseNumber',
                    title: '案件编号'
                },
                {
                    field: 'caseType',
                    title: '案件类型'
                },
                {
                    field: 'caseContent',
                    title: '案件简要'
                },
                {
                    field: 'caseAddress',
                    title: '案件地址'
                },
                {
                    field: 'caseBlock',
                    title: '案件街道'
                },
                {
                    field: 'caseBuilding',
                    title: '案件楼层'
                },
                {
                    field: 'caseCity',
                    title: '案件城市'
                },
                {
                    field: 'caseCounty',
                    title: '案件区域'
                },
                {
                    field: 'caseLatitude',
                    title: '案件发生纬度'
                },
                {
                    field: 'caseSource',
                    title: '案件来源'
                },
                {
                    field: 'caseSlDwName',
                    title: '报警单位受理名称'
                },
                {
                    field: 'caseOrgName',
                    title: '单位名称'
                },
                {
                    field: 'caseLongitude',
                    title: '案件发生经度'
                },
                {
                    field: 'caseItemNumber',
                    title: '案件物品编号'
                },
                {
                    field: 'casePoiItemPlace',
                    title: '案件物品类型，案件详细地址'
                },
                {
                    field: 'caseProvince',
                    title: '案件发生市区'
                },
                {
                    field: 'caseRoad',
                    title: '案件发生哪个马路'
                },
                {
                    field: 'caseStdAddress',
                    title: '案件发生具体地址'
                },
                {
                    field: 'caseTakeName',
                    title: '报警人'
                },
                {
                    field: 'caseTakeMobile',
                    title: '报警人手机号'
                },
                {
                    field: 'caseTakeIdcard',
                    title: '报警人身份证号'
                },
                {
                    field: 'caseStatus',
                    title: '案件状态'
                },
                {
                    field: 'caseTime',
                    title: '案件发生时间'
                },
                {
                    field: 'remark',
                    title: '备注'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>